package com.cip.email.picasa.email;

import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;

import de.saxsys.roo.equals.addon.RooEquals;

@RooToString
@RooJavaBean
@RooEquals
public class ImageAttachment {

	private String name;
	private byte[] content;

	public static class Builder {
		private String name;
		private byte[] content;

		public Builder name(String name) {
			this.name = name;
			return this;
		}

		public Builder content(byte[] content) {
			this.content = content;
			return this;
		}

		public ImageAttachment build() {
			ImageAttachment imageAttachment = new ImageAttachment();
			imageAttachment.name = name;
			imageAttachment.content = content;
			return imageAttachment;
		}
	}
}